package edu.chl.grupp11.aegas.view;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;

import edu.chl.grupp11.aegas.model.AbstractMetaTag;

public class DeletableTagView extends TagView implements ActionListener {
	private static final long serialVersionUID = 1L;
	private JButton deleteButton = new JButton();

	public DeletableTagView(AbstractMetaTag tag) {
		super(tag);
		deleteButton.setText("delete");
		deleteButton.addActionListener(this);
	}

	@Override
	public void actionPerformed(ActionEvent arg0) {
		firePropertyChange("delete", true, false);
	}
}
